Lab 6.1 3 a) MUL X is stored at 4 or in binary 00000010 b) LDI is an unknown instuction c) 10 d) Variable Y is stored at address 2 and is represented in binary by 10000010 e) Variable X is stored at address 4 and is represented in binary by 10000001 f) Variable W is stored at address 6 and is represented in binary by 10000000 g) LOD 5 ADD W SUB Z DIV X STO Y Lab 6.2 9 a) Y = Z * 3 - X b) Y = Z + (X-3) c) Y = 3(Z/2) - X Lab 6.3 6. a) LOD Z MUL #3 SUB X STO Y b) LOD Y ADD #5 DIV #2 STO X c) LOD W MUL X STO T1 LOD X MUL X ADD T1 STO Z 7. a) Z/2=X b) z/2*Y=X c) X=Z/2Y Lab 6.4 7. X = (3*14) + (2/1) X = 42 + 2 X = 44 The book states that this should produce a value of 43 when the code is played by the simulator. 8. LOD X ADD Y ADD Z DIV #3 STO W HLT